<div class="login">
    <form class="d-b" name='login'>
        <input validator='required,phone' ng-model='user.phone' class="d-b" type="text" placeholder="输入手机号">
        <input validator='required,password' ng-model='user.password' class="d-b" type="password" placeholder="输入密码">
        <button class="d-b log-btn" validation-submit='login' ng-click='submit()'>登录</button>
        <button class="d-b reg-btn" ui-sref='register'>注册</button>
    </form>
</div>